Re: [NTG-context] on the t-ruby module

2015-02-18 Thread Wolfgang Schuster
Am 18.02.2015 um 20:04 schrieb Pablo Rodriguez oi...@gmx.es: Hi Wolfgang, I have just discovered your t-ruby module. Many thanks for this module, which is extremely useful for interlinear translations. Here you have the sample: \usemodule[ruby] \defineruby[trans][textstyle

Re: [NTG-context] on the t-ruby module

2015-02-18 Thread Wolfgang Schuster
Am 18.02.2015 um 20:25 schrieb Wolfgang Schuster schuster.wolfg...@gmail.com: Am 18.02.2015 um 20:04 schrieb Pablo Rodriguez oi...@gmx.es: Hi Wolfgang, I have just discovered your t-ruby module. Many thanks for this module, which is extremely useful for interlinear translations

Re: [NTG-context] on the t-ruby module

2015-02-18 Thread Pablo Rodriguez
On 02/18/2015 08:36 PM, Wolfgang Schuster wrote: Am 18.02.2015 um 20:25 schrieb Wolfgang Schuster: Am 18.02.2015 um 20:04 schrieb Pablo Rodriguez: I have just discovered your t-ruby module. Many thanks for this module, which is extremely useful for interlinear translations

[NTG-context] on the t-ruby module

2015-02-18 Thread Pablo Rodriguez
Hi Wolfgang, I have just discovered your t-ruby module. Many thanks for this module, which is extremely useful for interlinear translations. Here you have the sample: \usemodule[ruby] \defineruby[trans][textstyle=\it] \starttext \startTEXpage[offset=1em] \trans{The}{Der} \trans{sentence}{Satz

[NTG-context] Ruby warnings when running texexec

2014-04-23 Thread Jonathan Budd
Hi all Whenever I run texexec I encounter a series of warnings from Ruby. For example, running texexec —version returns the following: texexec --version /usr/local/texlive/2013/texmf-dist/scripts/context/ruby/texexec.rb:688: warning: class variable access from toplevel /usr/local/texlive/2013

Re: [NTG-context] Complex Ruby

2013-02-24 Thread Wolfgang Schuster
Am 19.02.2013 um 18:14 schrieb Zenlima p...@zenlima.eu: Hi, I wonder how to make complex ruby like it is shown in the comments of the ruby module. Maybe I don't see the the obvious - can anyone help me with that? I need ruby text above and under a word in mkiv. The module supports only

[NTG-context] Complex Ruby

2013-02-19 Thread Zenlima
Hi, I wonder how to make complex ruby like it is shown in the comments of the ruby module. Maybe I don't see the the obvious - can anyone help me with that? I need ruby text above and under a word in mkiv. H

[NTG-context] TeXexec / mptex / Ruby bug with Unicode letters

2012-12-11 Thread Michal Kvasnička
Hallo. It seems that something was changed in Ruby that makes texexec --mptex not working with some Unicode letters, e.g. rcaron. This file compiles all right with texexec --mptex: beginfig(1); label(textext(a),origin); endfig; end. However, when I change a to ř (unicode for rcaron or \v{r

Re: [NTG-context] TeXexec / mptex / Ruby bug with Unicode letters

2012-12-11 Thread Hans Hagen
On 12/11/2012 9:00 AM, Michal Kvasnička wrote: Hallo. It seems that something was changed in Ruby that makes texexec --mptex not working with some Unicode letters, e.g. rcaron. probably true This file compiles all right with texexec --mptex: beginfig(1); label(textext(a),origin); endfig

Re: [NTG-context] ruby for vertical layout

2012-03-11 Thread Wolfgang Schuster
Am 10.03.2012 um 21:32 schrieb S Barmeier: Is there something like ruby for vertical layout? For vertical typesetting you can also use ruby. Wolfgang ___ If your question is of interest to others as well, please

Re: [NTG-context] ruby for vertical layout

2012-03-11 Thread S Barmeier
Is there something like ruby for vertical layout? For vertical typesetting you can also use ruby. Wolfgang OK, how do I use the vertical ruby in horizontal text? ___ If your question is of interest to others

Re: [NTG-context] ruby for vertical layout

2012-03-11 Thread Wolfgang Schuster
Am 11.03.2012 um 09:57 schrieb S Barmeier: Is there something like ruby for vertical layout? For vertical typesetting you can also use ruby. Wolfgang OK, how do I use the vertical ruby in horizontal text? That’s not supported, you can only use horizontal ruby in horizontal text

Re: [NTG-context] ruby for vertical layout

2012-03-11 Thread S Barmeier
Is there something like ruby for vertical layout? For vertical typesetting you can also use ruby. Wolfgang OK, how do I use the vertical ruby in horizontal text? That’s not supported, you can only use horizontal ruby in horizontal text and vertical ruby in vertical text. Wolfgang I

Re: [NTG-context] ruby for vertical layout

2012-03-11 Thread Wolfgang Schuster
Am 11.03.2012 um 10:18 schrieb S Barmeier: Is there something like ruby for vertical layout? For vertical typesetting you can also use ruby. Wolfgang OK, how do I use the vertical ruby in horizontal text? That’s not supported, you can only use horizontal ruby in horizontal text

Re: [NTG-context] ruby for vertical layout

2012-03-11 Thread S Barmeier
On 03/11/2012 02:58 PM, Wolfgang Schuster wrote: Am 11.03.2012 um 10:18 schrieb S Barmeier: Is there something like ruby for vertical layout? For vertical typesetting you can also use ruby. Wolfgang OK, how do I use the vertical ruby in horizontal text? That’s not supported, you can

[NTG-context] ruby for vertical layout

2012-03-10 Thread S Barmeier
Is there something like ruby for vertical layout? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context

Re: [NTG-context] ruby module

2012-03-09 Thread Wolfgang Schuster
Am 04.03.2012 um 14:26 schrieb S Barmeier: Is it possible to place the ruby text in a margin? No. This would allow me to keep line spacing decently tight and also prevent the reader from only reading the annotation. This can be added but then you need a symbol (or something else

Re: [NTG-context] ruby module

2012-03-09 Thread S Barmeier
On 03/09/2012 04:30 PM, ntg-context-requ...@ntg.nl wrote: Is it possible to place the ruby text in a margin? No. This would allow me to keep line spacing decently tight and also prevent the reader from only reading the annotation. This can be added but then you need a symbol

[NTG-context] ruby module

2012-03-04 Thread S Barmeier
Is it possible to place the ruby text in a margin? This would allow me to keep line spacing decently tight and also prevent the reader from only reading the annotation. How can one change the font size of the annotation and is there a way to keep it fixed, not being scaled according to the font

Re: [NTG-context] ruby module

2012-03-04 Thread Wolfgang Schuster
Am 04.03.2012 um 10:11 schrieb S Barmeier: Is it possible to place the ruby text in a margin? No. This would allow me to keep line spacing decently tight and also prevent the reader from only reading the annotation. This can be added but then you need a symbol (or something else) to see

Re: [NTG-context] ruby module

2012-03-04 Thread S Barmeier
Is it possible to place the ruby text in a margin? No. This would allow me to keep line spacing decently tight and also prevent the reader from only reading the annotation. This can be added but then you need a symbol (or something else) to see to which word the annotation refers. I'm

[NTG-context] ruby overhang

2012-03-04 Thread S Barmeier
\usemodule[ruby] \setupruby[overhang=start] \starttext foo \ruby{bar}{foo bar baz} baz \stoptext end,yes,auto all give overhang=none. Am I doing something wrong? Severin ___ If your question is of interest to others

Re: [NTG-context] ruby overhang

2012-03-04 Thread Wolfgang Schuster
Am 04.03.2012 um 15:43 schrieb S Barmeier: \usemodule[ruby] \setupruby[overhang=start] \starttext foo \ruby{bar}{foo bar baz} baz \stoptext end,yes,auto all give overhang=none. Am I doing something wrong? You need also “align=center” because by default the base text is stretched

Re: [NTG-context] Ruby 1.9.1 and non-ascii char parsing in .tui file

2009-08-10 Thread Hans Hagen
in zzz.tex. In that example I noticed the error because the cross-refs in the equation numbering were not working. The parsing of the .tui file by ruby 1.9.1 failed. Then I saw the errors. ruby 1.9 internally is no longer 8 bit clean i.e. there is always an encoding (file as well as internal

Re: [NTG-context] Ruby 1.9.1 and non-ascii char parsing in .tui file

2009-08-10 Thread Jose Augusto
Hi all, I think I solved the problem. At least for my actual errors... I read the following net article about string coding in ruby 1.9 and up: http://blog.grayproductions.net/articles/ruby_19s_string With that info at hand, I made two brute-force trial patches (read the above article

Re: [NTG-context] Ruby 1.9.1 and non-ascii char parsing in .tui file

2009-08-10 Thread Jose Augusto
wrapped in a main file, which was just: \starttext \input zzz.tex \stoptext That is, the offending chars were in zzz.tex. In that example I noticed the error because the cross-refs in the equation numbering were not working. The parsing of the .tui file by ruby 1.9.1 failed. Then I saw

Re: [NTG-context] Ruby 1.9.1 and non-ascii char parsing in .tui file

2009-08-10 Thread Hans Hagen
the proposed patches be helpful... your patch will not work with ruby 1.9 so if my patch (opening files in rb mode) works ok that's more robust; another option is to patch texmfstart.rb #!/usr/bin/env ruby #encoding: ASCII-8BIT

Re: [NTG-context] Ruby 1.9.1 and non-ascii char parsing in .tui file

2009-08-10 Thread Jose Augusto
Hi Hans, The patch I proposed works also with ruby less than 1.9 (e.g. ruby 1.8.7)! The force_encoding() method is used only if RUBY_VERSION = 1.9. If the scripts are executed by ruby 1.8 or lesser version, there's no change done to the current line of code (e.g. 'case line.chomp' ). Also, I

Re: [NTG-context] Ruby 1.9.1 and non-ascii char parsing in .tui file

2009-08-10 Thread Hans Hagen
Jose Augusto wrote: Meanwhile I don't think that the magic string # encoding: ASCII-8BIT solves the problem. This string indicates that the script is written in ASCII-8BIT, but when is reading the strings from the .tex or .tui files ruby 1.9.1 considers them as US-ASCII regardless

Re: [NTG-context] Ruby 1.9.1 and non-ascii char parsing in .tui file

2009-08-10 Thread Jose Augusto
Hi Hans, I ran just now ruby 1.8.6 and the force_encoding() patch worked well. Just now I upgrade --context=current. The banner in the texexec.rb is banner = ['TeXExec', 'version 6.2.1', '1997-2009', 'PRAGMA ADE/POD'] and the date of this script (after updating) is 10-04-2009 (its April..) I'm

Re: [NTG-context] Ruby 1.9.1 and non-ascii char parsing in .tui file

2009-08-10 Thread Hans Hagen
Jose Augusto wrote: Hi Hans, I ran just now ruby 1.8.6 and the force_encoding() patch worked well. yes, but if we can avoid adapting all those strings ... i'm pretty sure that if we follow that route we have to patch a lot also keep in mind that in 1.9 there are several encodings (external

[NTG-context] Ruby 1.9.1 and non-ascii char parsing in .tui file

2009-08-08 Thread Jose Augusto
Hi all, A few weeks ago I reported a problem with ruby 1.9.1, which was solved by removing the offending .tui line (Mojca and Hans AFAIR). The problem was related with the existence of non-ascii chars in the .tui file. Sadly it strikes again, now when chars with accents appear in titles (sections

Re: [NTG-context] ConTeXt Minimals parsing of .tui broken with ruby 1.9.1 in Windows

2009-07-15 Thread Jose Augusto
Hi all, Thanks for the patch. I just updated ConTeXt Minimals and re-tried. Here is the GOOD result, now its working: - F:\ANOS\TeXesruby -v ruby 1.9.1p129 (2009-05-12 revision 23412) [i386-mingw32] F:\ANOS\TeXestexexec con-hello1.tex TeXExec | processing

[NTG-context] ConTeXt Minimals parsing of .tui broken with ruby 1.9.1 in Windows

2009-07-14 Thread Jose Augusto
Hello all, I want to report a problem that is either in ConTeXt, or in ruby 1.9.1 (last version of ruby). More probably, the problem has to do with ruby handling non-ASCII characters. I have no means of trying Linux, Solaris, etc... Anyone using ConTeXt with ruby 1.9.1 will face it probably

Re: [NTG-context] ConTeXt Minimals parsing of .tui broken with ruby 1.9.1 in Windows

2009-07-14 Thread Hans Hagen
Jose Augusto wrote: Hello all, I want to report a problem that is either in ConTeXt, or in ruby 1.9.1 (last version of ruby). More probably, the problem has to do with ruby handling non-ASCII characters. I have no means of trying Linux, Solaris, etc... Anyone using ConTeXt with ruby 1.9.1

Re: [NTG-context] ConTeXt Minimals parsing of .tui broken with ruby 1.9.1 in Windows

2009-07-14 Thread Mojca Miklavec
After installing ConTeXt Minimals (the devel version) yesterday, I ran the above example with ruby 1.9.1-p129 in Windows (both Win 2000 and XP show the problem). (maybe mojca can patch this in core-uti.mkii: ): % \appendtoks %   \immediatewriteutilitycommand{\thisisbytesequence

[NTG-context] ruby or perl or lua or ...

2009-07-14 Thread ivo welch
hi hans---just curious. do you plan conTeXt to use just one computer language in the future? /iaw ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

Re: [NTG-context] ruby or perl or lua or ...

2009-07-14 Thread Mojca Miklavec
about scripting (ruby, perl) ... in ideal world it should all end up being lua only (until the next language comes to the horizon), but there might not be enough motivation to rewrite *all* the existing scripts, so some of the older scripts (texfont etc.) will probably stay in ruby/perl for a while

Re: [NTG-context] ruby or perl or lua or ...

2009-07-14 Thread Hans Hagen
kpsewhich at all) and is pretty fast the only bit that is still depending on ruby is the index sorting that is built in texexec (used by pdftex and xetex) but i could not motivate myself to rewrite that bit the luatx workflow only uses lua and uses luatex itself as lua interpreter so

Re: [NTG-context] ruby or perl or lua or ...

2009-07-14 Thread Hans Hagen
:) :) :) If talking about scripting (ruby, perl) ... in ideal world it should all end up being lua only (until the next language comes to the horizon), but there might not be enough motivation to rewrite *all* the existing scripts, so some of the older scripts (texfont etc.) will probably stay

[NTG-context] ruby 1.9

2009-03-01 Thread Hans Hagen
Hi, Akira reported problems with context and ruby 1.9 and it looks like there are some upward incompatible changes in ruby (even syntax) so i need some time to figure that out. In the meantime ... just avoid using texexec with ruby 1.9 Hans

Re: [NTG-context] ConTeXt ultraminimals (was re: Perl/Ruby dependency)

2008-04-17 Thread Taco Hoekwater
Hans Hagen wrote: Joel C. Salomon wrote: On Sat, Apr 12, 2008 at 3:02 AM, Hans Hagen [EMAIL PROTECTED] wrote: Slight tangent: Is there any support for using any of the OpenType math fonts (I know of Cambria Math, STIX, and Asana Math—this last on tug.org) in mkiv? cambria ...

Re: [NTG-context] ConTeXt ultraminimals (was re: Perl/Ruby dependency)

2008-04-16 Thread Joel C. Salomon
On Sat, Apr 12, 2008 at 3:02 AM, Hans Hagen [EMAIL PROTECTED] wrote: Slight tangent: Is there any support for using any of the OpenType math fonts (I know of Cambria Math, STIX, and Asana Math—this last on tug.org) in mkiv? cambria ... probably in the near future (as tex gyre will also

Re: [NTG-context] ConTeXt ultraminimals (was re: Perl/Ruby dependency)

2008-04-16 Thread Hans Hagen
Joel C. Salomon wrote: On Sat, Apr 12, 2008 at 3:02 AM, Hans Hagen [EMAIL PROTECTED] wrote: Slight tangent: Is there any support for using any of the OpenType math fonts (I know of Cambria Math, STIX, and Asana Math—this last on tug.org) in mkiv? cambria ... probably in the near

Re: [NTG-context] ConTeXt ultraminimals (was re: Perl/Ruby dependency)

2008-04-12 Thread Hans Hagen
Joel C. Salomon wrote: Slight tangent: Is there any support for using any of the OpenType math fonts (I know of Cambria Math, STIX, and Asana Math—this last on tug.org) in mkiv? cambria ... probably in the near future (as tex gyre will also have math and), since stix is type 1 and spread

Re: [NTG-context] ConTeXt ultraminimals (was re: Perl/Ruby dependency)

2008-04-11 Thread Hans Hagen
Joel C. Salomon wrote: On Tue, Apr 8, 2008 at 4:22 PM, Hans Hagen [EMAIL PROTECTED] wrote: luatex + context mkiv is indeed independent [of Ruby] - index sorting takes place in mkiv - job control is done with mtxrun/mtx-context Now that I've been told the idea is at least possible, I've

Re: [NTG-context] ConTeXt ultraminimals (was re: Perl/Ruby dependency)

2008-04-11 Thread Mojca Miklavec
On Fri, Apr 11, 2008 at 9:42 AM, Hans Hagen [EMAIL PROTECTED] wrote: Joel C. Salomon wrote: On Tue, Apr 8, 2008 at 4:22 PM, Hans Hagen [EMAIL PROTECTED] wrote: luatex + context mkiv is indeed independent [of Ruby] - index sorting takes place in mkiv - job control is done

Re: [NTG-context] ConTeXt ultraminimals (was re: Perl/Ruby dependency)

2008-04-11 Thread Joel C. Salomon
On Fri, Apr 11, 2008 at 3:42 AM, Hans Hagen [EMAIL PROTECTED] wrote: one option is to write a dedicated fetch script, load the minimals for luatex use only (is an option) and then look at the files you need Any clues for how to go about this? i wonder if it's worth the trouble because all

Re: [NTG-context] ConTeXt ultraminimals (was re: Perl/Ruby dependency)

2008-04-11 Thread Joel C. Salomon
On Fri, Apr 11, 2008 at 9:54 AM, Mojca Miklavec [EMAIL PROTECTED] wrote: There are many other OpenType fonts that get fetched by default as well. And maybe the whole bin/common can be left out in that case (maybe windows still needs some libraries). So there is still some space that could

Re: [NTG-context] ConTeXt ultraminimals (was re: Perl/Ruby dependency)

2008-04-11 Thread luigi scarso
See my reply to Hans (about five minutes before this message); it's complexity of installation and options, not disc usage, that I'm trying to minimize. A bit off-topic: mayb we can also think a context-live iso img. -- luigi it's new . it's powerful . it's luatex . http://www.luatex.org

Re: [NTG-context] ConTeXt ultraminimals (was re: Perl/Ruby dependency)

2008-04-11 Thread Mojca Miklavec
On Fri, Apr 11, 2008 at 4:17 PM, Joel C. Salomon wrote: On Fri, Apr 11, 2008 at 3:42 AM, Hans Hagen wrote: one option is to write a dedicated fetch script, load the minimals for luatex use only (is an option) and then look at the files you need Any clues for how to go about this?

Re: [NTG-context] ConTeXt ultraminimals (was re: Perl/Ruby dependency)

2008-04-11 Thread luigi scarso
. A bit off-topic: mayb we can also think a context-live iso img. I have already done it once (perl and ruby added to the CD, and formats generated), and one could be prepared at/for the conference. However, I have no idea how sensible the formats are (if you prepare a live CD

Re: [NTG-context] ConTeXt ultraminimals (was re: Perl/Ruby dependency)

2008-04-11 Thread Mojca Miklavec
already done it once (perl and ruby added to the CD, and formats generated), and one could be prepared at/for the conference. However, I have no idea how sensible the formats are (if you prepare a live CD with slightly different versions of pdfTeX for different platforms - probably that's not going

Re: [NTG-context] ConTeXt ultraminimals (was re: Perl/Ruby dependency)

2008-04-11 Thread Martin Schröder
2008/4/11, luigi scarso [EMAIL PROTECTED]: What about an image to run with a virtual machine ? Much better. Best Martin ___ If your question is of interest to others as well, please add an entry to the Wiki!

Re: [NTG-context] ConTeXt ultraminimals (was re: Perl/Ruby dependency)

2008-04-11 Thread Joel C. Salomon
On Fri, Apr 11, 2008 at 10:37 AM, Mojca Miklavec [EMAIL PROTECTED] wrote: Any clues for how to go about this? There are two options: 1.) take a look at first-setup.sh (really stupid script); you can call mtx-update with --engine=luatex As opposed to --engine=all? Sounds good so far.

[NTG-context] ConTeXt ultraminimals (was re: Perl/Ruby dependency)

2008-04-10 Thread Joel C. Salomon
On Tue, Apr 8, 2008 at 4:22 PM, Hans Hagen [EMAIL PROTECTED] wrote: luatex + context mkiv is indeed independent [of Ruby] - index sorting takes place in mkiv - job control is done with mtxrun/mtx-context Now that I've been told the idea is at least possible, I've been thinking about how

[NTG-context] perl/Ruby dependency -- how deep?

2008-04-08 Thread Joel C. Salomon
Two questions came up when I was looking into putting ConTeXt on a USB stick (i.e., as a portable app): 1. Is perl still required for a ConTeXt installation (say, under Windows)? I know texexec is now written in Ruby, but are there other programs in Stand-alone or the Minimals that require perl

Re: [NTG-context] perl/Ruby dependency -- how deep?

2008-04-08 Thread Mojca Miklavec
On Tue, Apr 8, 2008 at 8:37 PM, Joel C. Salomon wrote: Two questions came up when I was looking into putting ConTeXt on a USB stick (i.e., as a portable app): 1. Is perl still required for a ConTeXt installation (say, under Windows)? I know texexec is now written in Ruby

Re: [NTG-context] perl/Ruby dependency -- how deep?

2008-04-08 Thread Hans Hagen
Joel C. Salomon wrote: Two questions came up when I was looking into putting ConTeXt on a USB stick (i.e., as a portable app): 1. Is perl still required for a ConTeXt installation (say, under Windows)? I know texexec is now written in Ruby, but are there other programs in Stand-alone

Re: [NTG-context] perl/Ruby dependency -- how deep?

2008-04-08 Thread Hans Hagen
Mojca Miklavec wrote: Yes. You can already use context (see mtx-context.lua), though there is no stub yet (you can easily make one), and it's not so well tested yet. it works ok, but at this moment has less options than texexec, but those are not needed for runs

[NTG-context] A ruby script to create the font for Chinese fonts

2007-12-20 Thread Zhichu Chen
Hi, Although Hans has made the perfect ruby script ttf2uni.rb that meets most of our needs, I just found that sometimes embedding ttf files is very very slow, so I made some tiny modifications on it. It will convert an oft file to a ttf file if no ttf files are found in the names of the arguments

Re: [NTG-context] A ruby script to create the font for Chinese fonts

2007-12-20 Thread Zhichu Chen
Oops, seems that I've accidentally sent an old one. On Dec 21, 2007 8:45 AM, Zhichu Chen [EMAIL PROTECTED] wrote: Hi, Although Hans has made the perfect ruby script ttf2uni.rb that meets most of our needs, I just found that sometimes embedding ttf files is very very slow, so I made some

Re: [NTG-context] Ruby version requirements

2007-05-28 Thread Hans Hagen
Oliver Buerschaper wrote: Hi all, I'm in the middle of putting together a native Mac OS X edition of ConTeXt Minimal ... for this I need to know which version of Ruby is minimally required by the latest ConTeXt release. (It wouldn't hurt though to know this for older ConTeXt versions

[NTG-context] Ruby version requirements

2007-05-27 Thread Oliver Buerschaper
Hi all, I'm in the middle of putting together a native Mac OS X edition of ConTeXt Minimal ... for this I need to know which version of Ruby is minimally required by the latest ConTeXt release. (It wouldn't hurt though to know this for older ConTeXt versions, too ;-) Any help appreciated

Re: [NTG-context] Ruby version requirements

2007-05-27 Thread Taco Hoekwater
Oliver Buerschaper wrote: Hi all, I'm in the middle of putting together a native Mac OS X edition of ConTeXt Minimal ... for this I need to know which version of Ruby is minimally required by the latest ConTeXt release. (It wouldn't hurt though to know this for older ConTeXt versions

[NTG-context] differences of perl/ruby texexec

2007-05-04 Thread Henning Hraban Ramm
Ahoi! While processing my LilyPond/ConTeXt songbook, I experience still the same behaviour as in 2006-10: The checking, if a LilyPond buffer/temp file has changed, works only with the old Perl texexec, the recent Ruby version creates/processes the files only if they're missing completely

Re: [NTG-context] differences of perl/ruby texexec

2007-05-04 Thread Aditya Mahajan
On Fri, 4 May 2007, Henning Hraban Ramm wrote: Ahoi! While processing my LilyPond/ConTeXt songbook, I experience still the same behaviour as in 2006-10: The checking, if a LilyPond buffer/temp file has changed, works only with the old Perl texexec, the recent Ruby version creates/processes

Re: [NTG-context] differences of perl/ruby texexec

2007-05-04 Thread Henning Hraban Ramm
. Actually it was easy, and I remember to have that problem reported when I enhanced the LilyPond module: It says the following with *-1.tmp for every song, i.e. the counter doesn't work in the Ruby version: TeXUtil | running texmfstart --ifchanged=prd_winternacht- lilypond-1.tmp --exec bin:lilypond

Re: [NTG-context] differences of perl/ruby texexec

2007-05-04 Thread Aditya Mahajan
, it will also affect the R module. Actually it was easy, and I remember to have that problem reported when I enhanced the LilyPond module: It says the following with *-1.tmp for every song, i.e. the counter doesn't work in the Ruby version: TeXUtil | running texmfstart --ifchanged

Re: [NTG-context] differences of perl/ruby texexec

2007-05-04 Thread Henning Hraban Ramm
Am 2007-05-04 um 21:15 schrieb Aditya Mahajan: \global\advance\lily!figures\plusone \edef\lily!filename{\bufferprefix lilypond-\the\lily!figures} ... \edef\LP{texmfstart --ifchanged=\lily!filename.tmp --exec bin:lilypond -b eps -dno-gs-load-fonts -dinclude-eps-fonts \lily! filename.tmp}

Re: [NTG-context] differences of perl/ruby texexec

2007-05-04 Thread Henning Hraban Ramm
Am 2007-05-04 um 21:50 schrieb Henning Hraban Ramm: \global\advance\lily!figures\plusone \edef\lily!filename{\bufferprefix lilypond-\the\lily!figures} ... \edef\LP{texmfstart --ifchanged=\lily!filename.tmp --exec bin:lilypond -b eps -dno-gs-load-fonts -dinclude-eps-fonts \lily!

Re: [NTG-context] differences of perl/ruby texexec

2007-05-04 Thread Aditya Mahajan
On Fri, 4 May 2007, Henning Hraban Ramm wrote: Am 2007-05-04 um 21:50 schrieb Henning Hraban Ramm: \global\advance\lily!figures\plusone \edef\lily!filename{\bufferprefix lilypond-\the\lily!figures} ... \edef\LP{texmfstart --ifchanged=\lily!filename.tmp --exec bin:lilypond -b eps

Re: [NTG-context] differences of perl/ruby texexec

2007-05-04 Thread Henning Hraban Ramm
at all (only placeholders), while normally also the Ruby script does create something... And remember: It works with Perl texexec! Maybe --ifchanged in not honored at all and lilypond is run every time, irrespective of whether the snippet has changed or not. No, it works completely correct

Re: [NTG-context] Newbie questions: integrating ruby/perl scripts into a document; changing line spacing for typed text only

2007-02-17 Thread cormullion
On 2007-02-15, at 18:16.0, Vyatcheslav Yatskovsky wrote: 1) How can I integrate ruby/perl scripts into a .tex document? (I want to create a CD cataloguing tool and gonna use script for reading CD file list). By coincidence I've just written something about this too. Not for ruby/perl

Re: [NTG-context] Newbie questions: integrating ruby/perl scripts into a document; changing line spacing for typed text only

2007-02-17 Thread Aditya Mahajan
On Sat, 17 Feb 2007, [EMAIL PROTECTED] wrote: On 2007-02-15, at 18:16.0, Vyatcheslav Yatskovsky wrote: 1) How can I integrate ruby/perl scripts into a .tex document? (I want to create a CD cataloguing tool and gonna use script for reading CD file list). By coincidence I've just written

Re: [NTG-context] Newbie questions: integrating ruby/perl scripts into a document; changing line spacing for typed text only

2007-02-17 Thread cormullion
On 2007-02-17, at 18:45.0, Aditya Mahajan wrote: Interesting. Just a couple of points. Do not use the prefix m- for your modules. m- is reserved for modules in the core distribution. You can use t- (third party) if you want to distribute your module, or p- (personal) if you do not want to

Re: [NTG-context] Newbie questions: integrating ruby/perl scripts into a document; changing line spacing for typed text only

2007-02-16 Thread luigi scarso
On 2/15/07, Vyatcheslav Yatskovsky [EMAIL PROTECTED] wrote: Hello, I want to ask a few questions that I cannot resolve by myself so far. 1) How can I integrate ruby/perl scripts into a .tex document? (I want to create a CD cataloguing tool and gonna use script for reading CD file list

Re: [NTG-context] Newbie questions: integrating ruby/perl scripts into a document

2007-02-16 Thread Vyatcheslav Yatskovsky
\executesystemcommand{some_external_program ...} When I try something like \starttext Hello \executesystemcommand{1.rb} \stoptext I get systems : system commands are disabled (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo)

Re: [NTG-context] Newbie questions: integrating ruby/perl scripts into a document

2007-02-16 Thread Vyatcheslav Yatskovsky
Thanks, \executesystemcommand{myscript.rb} seems to work. But what is the best way to insert a result (say, formatted text) into the 'caller' document body? The only idea I have is to use \input later in the document, but I'm not sure that it would work. Best regards,

Re: [NTG-context] Newbie questions: integrating ruby/perl scripts into a document

2007-02-16 Thread Hans Hagen
Vyatcheslav Yatskovsky wrote: \executesystemcommand{some_external_program ...} When I try something like \starttext Hello \executesystemcommand{1.rb} \stoptext I get systems : system commands are disabled (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo)

Re: [NTG-context] Newbie questions: integrating ruby/perl scripts into a document

2007-02-16 Thread Aditya Mahajan
On Fri, 16 Feb 2007, Aditya Mahajan wrote: On Fri, 16 Feb 2007, Vyatcheslav Yatskovsky wrote: \executesystemcommand{some_external_program ...} When I try something like \starttext Hello \executesystemcommand{1.rb} \stoptext I get systems : system commands are disabled

Re: [NTG-context] Newbie questions: integrating ruby/perl scripts into a document

2007-02-16 Thread Aditya Mahajan
On Fri, 16 Feb 2007, Vyatcheslav Yatskovsky wrote: \executesystemcommand{some_external_program ...} When I try something like \starttext Hello \executesystemcommand{1.rb} \stoptext I get systems : system commands are disabled (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo)

[NTG-context] Newbie questions: integrating ruby/perl scripts into a document; changing line spacing for typed text only

2007-02-15 Thread Vyatcheslav Yatskovsky
Hello, I want to ask a few questions that I cannot resolve by myself so far. 1) How can I integrate ruby/perl scripts into a .tex document? (I want to create a CD cataloguing tool and gonna use script for reading CD file list). 2) How to change line spacing for typed text only? (I use medium

Re: [NTG-context] texexec ruby problem

2007-01-15 Thread Hans Hagen
Michal Kvasnicka wrote: Good morning. I've just installed new ConTeXt (ver: 2006.08.08 21:51) under SuSE 10.1 Linux. I tried to make ruby version of texexec working, but I failed. When I try to run it, I get this error message: /usr/share/texmf/scripts/context/ruby/texexec.rb:10:in `require

[NTG-context] texexec ruby problem

2007-01-14 Thread Michal Kvasnicka
Good morning. I've just installed new ConTeXt (ver: 2006.08.08 21:51) under SuSE 10.1 Linux. I tried to make ruby version of texexec working, but I failed. When I try to run it, I get this error message: /usr/share/texmf/scripts/context/ruby/texexec.rb:10:in `require': no such file to load

Re: [NTG-context] texexec ruby problem

2007-01-14 Thread Sanjoy Mahajan
I've just installed new ConTeXt (ver: 2006.08.08 21:51) under SuSE 10.1 How did you install it? What was there before? It sounds like the new one isn't visible, since it's date is 2007.01.12 15:56 (or maybe later). Is 2006.08.08 the version that came with SuSE? What does kpsewhich

Re: [NTG-context] Hardcoded options in the Ruby scripts

2006-10-25 Thread Richard Gabriel
ont-ja.tex and defined the default language, default encoding etc. in them. And created new formats. But I had to add these new formats into scripts/ruby/base/tex.rb in order to generate and use them. In case of ConTeXt update, I have to do this change again and again. That's the reason why I've sugges

[NTG-context] Two problems with current ruby scripts

2006-10-25 Thread Norbert Preining
that calls ruby with the right path to texmfstart.rb. - Forwarded message from Mike Bird [EMAIL PROTECTED] - From: Mike Bird [EMAIL PROTECTED] Subject: New texexec very confused To: [EMAIL PROTECTED] Date: Tue, 24 Oct 2006 20:52:30 -0700 The new ruby texexec is very confused. The problem

Re: [NTG-context] Two problems with current ruby scripts

2006-10-25 Thread Hans Hagen
, add a texmfstart stub that calls ruby with the right path to texmfstart.rb. - Forwarded message from Mike Bird [EMAIL PROTECTED] - From: Mike Bird [EMAIL PROTECTED] Subject: New texexec very confused To: [EMAIL PROTECTED] Date: Tue, 24 Oct 2006 20:52:30 -0700 The new ruby texexec

Re: [NTG-context] Two problems with current ruby scripts

2006-10-25 Thread Mojca Miklavec
On 10/25/06, Hans Hagen wrote: Command:texexec --output=dvips foo Should produce: foo.dvi Actually produces: foo.pdf hm, i need to check that, maybe there is no dvips option Command:texexec --dvi foo Should produce: foo.dvi Actually produces:

[NTG-context] Hardcoded options in the Ruby scripts

2006-10-23 Thread Richard Gabriel
Hello Hans,I'm still wondering why there are certain formats hardcoded in your scripts and how the "make all formats" feature does (not work).See scripts/ruby/base/tex.rb:Lines 131-137:Here are a few languages predefined which texexec "knows". If I want to add a format for

Re: [NTG-context] Hardcoded options in the Ruby scripts

2006-10-23 Thread Hans Hagen
Richard Gabriel wrote: Lines 131-137: Here are a few languages predefined which texexec knows. If I want to add a format for another language, I have to add a new line here. such as ...? (adding a user inferface is more that adding something to texexec) Line 339: Here are the default TeX

Re: [NTG-context] run a ruby script and use the standard output ???

2006-09-30 Thread Taco Hoekwater
Renaud AUBIN wrote: Taco Hoekwater a écrit : And all you need now is the latest pdftex -) http://sarovar.org/project/showfiles.php?group_id=106release_id=752 Taco Is it normal that pdfetex.pool is no more built ? Yes. There is now only one executable, pdftex. It contains all code

Re: [NTG-context] run a ruby script and use the standard output ???

2006-09-29 Thread Renaud AUBIN
latest versions of pdftex support this (i\ve forgotten the syntax, but taco who wrote the patch may remember) piping syntax: \input "|ruby ./myscript.rb \vartest X" the magic trick is the | symbol. With your current tex: \writ18{ruby ./myscript.rb \vartest X

Re: [NTG-context] run a ruby script and use the standard output ???

2006-09-29 Thread Taco Hoekwater
Renaud AUBIN wrote: \starttext \input |ls \stoptext leads to (/usr/share/texmf-tetex/tex/latex/tools/.tex File ignored) Runaway argument? ls ! Paragraph ended before \next was complete. to be read again \par ??? The pipe symbol has to be non-active

Re: [NTG-context] run a ruby script and use the standard output ???

2006-09-29 Thread Renaud AUBIN
Taco Hoekwater a crit: The pipe symbol has to be non-active (\catcode`\|=12 ) Taco \starttext \catcode`\|=12 \input "|ls -l" \stoptext ! I can't find file `"|ls -l"'. l.7 \input "|ls -l" ___ ntg-context mailing list ntg-context@ntg.nl

Re: [NTG-context] run a ruby script and use the standard output ???

2006-09-29 Thread Taco Hoekwater
Renaud AUBIN wrote: \starttext \catcode`\|=12 \input |ls -l \stoptext ! I can't find file `|ls -l'. And all you need now is the latest pdftex -) http://sarovar.org/project/showfiles.php?group_id=106release_id=752 Taco ___ ntg-context

Re: [NTG-context] run a ruby script and use the standard output ???

2006-09-29 Thread Renaud AUBIN
Taco Hoekwater a écrit : And all you need now is the latest pdftex -) http://sarovar.org/project/showfiles.php?group_id=106release_id=752 Taco Thanks Yes, I finally realized that... ;) I'm now on my way to upgrade it... ___ ntg-context

Re: [NTG-context] run a ruby script and use the standard output ???

2006-09-29 Thread Renaud AUBIN
Taco Hoekwater a écrit : And all you need now is the latest pdftex -) http://sarovar.org/project/showfiles.php?group_id=106release_id=752 Taco Is it normal that pdfetex.pool is no more built ? ___ ntg-context mailing list ntg-context@ntg.nl

Re: [NTG-context] run a ruby script and use the standard output ???

2006-09-28 Thread Hans Hagen
Renaud AUBIN wrote: Hi all, Is it possible to run a ruby script from a context document during its processing (I already know how to do that using \write18 but there is maybe a better way...) then get the output of the script to display or use it into the document. It's a little bit hard

  1   2   >